package com.cungmua.app.model.request;

import com.cungmua.app.utils.AppUtils;
import com.fasterxml.jackson.annotation.JsonProperty;

/**
 * Created by kelvin.nguyen on 6/24/14.
 */
public class SearchDealRequest extends ListDealRequest {
    private String keyword;

    public SearchDealRequest(String deviceId, String token) {
        super(deviceId, token);
    }

    @JsonProperty("Keyword")
    public String getKeyword() {
        return keyword;
    }

    public void setKeyword(String keyword) {
        this.keyword = keyword;
    }

    @Override
    public String getSign() {
        return AppUtils.MD5(String.valueOf(getUserId()) + getKeyword() + getCityId() +
                getPageIndex() + getVersion() + getDeviceId() + getToken());
    }
}